﻿//********************************************************************
// Author:      刘艳明
// Create Date: 2012-08-26
// Description: 
//
// Version:     1.0.0.0
// Change History:
// Date		    Who		      Changes Maded
//--------------------------------------------------------------------
// Please Insert the Modiy record here!
//--------------------------------------------------------------------
//********************************************************************



using System;
using System.ComponentModel;
using System.IO;
using System.Runtime.Serialization;
using System.Text;
using System.Xml.Serialization;
using MillerApp.DataContract.Common;
using MillerApp.DataContract.Common.Entity;

namespace MillerApp.DataContract.MillerDB
{
    #region UsersecurityEntity
    /// <summary>
    /// 这个实体提供了 UsersecurityEntity ()的属性和方法.
    /// </summary>
    [DataContract]
    public partial class UsersecurityEntity : BaseEntity<UsersecurityEntity>, IEquatable<UsersecurityEntity>
    {

        #region Properties
        private int _id;
        /// <summary>
        /// 获取或设置id integer NotAllowDBNull
        /// </summary>
        [DataMember]
        public int id
        {
            get { return _id; }
            set
            {
                _id = value;
                //NotifyPropertyChange("id");
            }
        }

        private string _stockexchangecode = String.Empty;
        /// <summary>
        /// 获取或设置stockexchangecode character varying(5) AllowDBNull
        /// </summary>
        [DataMember]
        public string stockexchangecode
        {
            get { return _stockexchangecode; }
            set
            {
                _stockexchangecode = value;
                //NotifyPropertyChange("stockexchangecode");
            }
        }

        private string _secshortname = String.Empty;
        /// <summary>
        /// 获取或设置secshortname character varying(10) AllowDBNull
        /// </summary>
        [DataMember]
        public string secshortname
        {
            get { return _secshortname; }
            set
            {
                _secshortname = value;
                //NotifyPropertyChange("secshortname");
            }
        }

        private DateTime? _createtime;
        /// <summary>
        /// 获取或设置createtime timestamp without time zone AllowDBNull
        /// </summary>
        [DataMember]
        public DateTime? createtime
        {
            get { return _createtime; }
            set
            {
                _createtime = value;
                //NotifyPropertyChange("createtime");
            }
        }

        private string _seccode = String.Empty;
        /// <summary>
        /// 获取或设置seccode character(6) AllowDBNull
        /// </summary>
        [DataMember]
        public string seccode
        {
            get { return _seccode; }
            set
            {
                _seccode = value;
                //NotifyPropertyChange("seccode");
            }
        }

        private string _userid = String.Empty;
        /// <summary>
        /// 获取或设置userid character varying(16) AllowDBNull
        /// </summary>
        [DataMember]
        public string userid
        {
            get { return _userid; }
            set
            {
                _userid = value;
                //NotifyPropertyChange("userid");
            }
        }


        #endregion

        /// <summary>
        /// 构造函数
        /// </summary>
        public UsersecurityEntity()
        {
        }

        #region IEquatable<UsersecurityEntity> 成员
        /// <summary>
        /// 比较两个实例数据库表中的字段是否相等
        /// </summary>
        /// <param name="other">UsersecurityEntity</param>
        /// <returns>bool</returns>
        public bool Equals(UsersecurityEntity other)
        {
            return this.id.Equals(other.id) && this.stockexchangecode.Equals(other.stockexchangecode) && this.secshortname.Equals(other.secshortname) && this.createtime.Equals(other.createtime) && this.seccode.Equals(other.seccode) && this.userid.Equals(other.userid);
        }

        #endregion

        #region IDataKey 成员


        #endregion
    }

    #endregion
}
